home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
lib
/
X11
/
app-defaults
/
MineSweeper
< prev
next >
Wrap
Text File
|
1994-08-04
|
4KB
|
159 lines
!
! X11 Mine Sweeper
!
*allowShellResize: True
xms.wcChildren: main
*main.wcCreate: XmCreateMainWindow
*main.wcChildren: menuBar rc
*menuBar.wcCreate: XmCreateMenuBar
*menuBar.wcPopups: fileMenu sizeMenu helpMenu
*menuBar.wcChildren: file size help
*menuBar.wcAfterChildren: WcSetValue( this.menuHelpWidget: this.help )
! Menubar contents
*file.wcCreate: XmCascadeButton
*file.subMenuId: ^*fileMenu
*file.labelString: File
*file.mnemonic: F
*size.wcCreate: XmCascadeButton
*size.subMenuId: ^*sizeMenu
*size.labelString: Size
*size.mnemonic: S
*help.wcCreate: XmCascadeButton
*help.subMenuId: ^*helpMenu
*help.labelString: Help
*help.mnemonic: H
! Menubar items
*fileMenu.wcCreate: XmCreatePulldownMenu
*fileMenu.wcChildren: new, quit
*new.wcCreate: XmPushButton
*new.labelString: New Game
*new.mnemonic: N
*new.activateCallback: NewGame
*new.accelerator: Ctrl<Key>N
*new.acceleratorText: Ctrl-N
*quit.wcCreate: XmPushButton
*quit.labelString: Quit
*quit.mnemonic: Q
*quit.activateCallback: WcExit
*quit.accelerator: Ctrl<Key>C
*quit.acceleratorText: Ctrl-C
! Size options
*sizeMenu.wcCreate: XmCreatePulldownMenu
*sizeMenu.wcChildren: small, medium, large
*small.wcCreate: XmCreatePushButton
*small.labelString: Small
*small.activateCallback: NewSize( 0 )
*medium.wcCreate: XmCreatePushButton
*medium.labelString: Medium
*medium.activateCallback: NewSize( 1 )
*large.wcCreate: XmCreatePushButton
*large.labelString: Large
*large.activateCallback: NewSize( 2 )
! Help items
*helpMenu.wcCreate: XmCreatePulldownMenu
*helpMenu.wcPopups: helpDialog
*helpMenu.wcChildren: mbHelp, gameHelp
*mbHelp.wcCreate: XmPushButton
*mbHelp.labelString: on Menu Bar
*mbHelp.mnemonic: M
*mbHelp.activateCallback: WcSetValue( \
~*helpDialog.messageString: The menu bar... )\
WcManage( ~*helpDialog )
*gameHelp.wcCreate: XmPushButton
*gameHelp.labelString: on MineSweeper Game
*gameHelp.mnemonic: M
*gameHelp.activateCallback: WcSetValue( \
~*helpDialog.messageString: The Game MineSweeper... )\
WcManage( ~*helpDialog )
! Used for all help, OK and Cancel unmanage.
!
*helpDialog.wcCreate: XmCreateMessageDialog
*helpDialog.helpCallback: WcSetValue( \
~helpDialog.messageString: Sorry, no additional help is available. )
! The main Minefield area
*rc.wcCreate: XmpTable
*rc.wcChildren: rc2 Minefield
*rc.layout: rc2 0 0 h; Minefield 0 1;
*XmpTable.marginHeight: 2
*XmpTable.marginWidth: 2
! message area, for score, timer and smiley face.
*rc2.wcCreate: XmpTable
*rc2.wcChildren: score simle timer
*rc2.layout: score 0 0 h ; simle 1 0 ; timer 2 0;
*simle.wcCreate: XmPushButton
*simle.activateCallback: NewGame
*simle.labelType: XmPIXMAP
!*simle.labelPixmap: smile
*simle.recomputeSize: False
*simle.wcCallback: CreateSmile()
*score.wcCreate: XmLabel
*score.labelString: 9999999
*score.recomputeSize: False
*score.fontList: -*-helvetica-*-r-*-*-*-180-*-*-*-*-*-*
*timer.wcCreate: dclockWidgetClass
*timer.seconds: True
*timer.width: 70
*timer.height: 40
*timer.borderWidth: 0
*Minefield.wcCreate: XmpTable
*Minefield.wcCallback: CreateMinefield()
!
! don't do the drag start actions, just these
!
*Minefield.?.translations: #replace \n\
<BtnDown>:Arm()\n\
<BtnDown>,<BtnUp>:Activate() Disarm()
! some more look and feel resources.
!*Minefieldframe.marginHeight: 3
!*Minefieldframe.marginWidth: 3
!*Minefieldframe.shadowType: XmSHADOW_OUT
!*Minefield.marginHeight: 2
!*Minefield.marginWidth: 2
*Minefield*highlightThickness: 0
! make the buttons square to start with.
*XmPushButton.width: 20
*XmPushButton.height: 20
!
! These are the defaults built into the client.
!*smallsize: 8x10
!*mediumsize: 20x12
!*largesize: 32x16
! possible values: small, medium, large
*defaultsize: medium
! Print debug messages
! *debug: 1
! how many bombs to make, default is saturation == 7
! NumBombs = width * height / saturation;
! easy
! *saturation : 10
! hard
! *saturation : 5
*saturation : 10